﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="addNews.aspx.cs" Inherits="admin_addNews"
    ValidateRequest="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>发布新闻</title>
    <script type="text/javascript" charset="utf-8" src="kindeditor/kindeditor.js"></script>
    <script type="text/javascript">
        KE.show({
            id: 'tb_body',
            imageUploadJson: '../../asp.net/upload_json.ashx',
            fileManagerJson: '../../asp.net/file_manager_json.ashx',
            allowFileManager: true,
            resizeMode: 1,
            items: ['source', '|', 'fullscreen', 'undo', 'redo', 'print', 'cut', 'copy', 'paste',
            'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
             'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent',
             'subscript', 'superscript', '|', 'selectall', '-', 'title', 'fontname', 'fontsize',
              '|', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline', 'strikethrough', 'removeformat', 
              '|', 'image', 'flash', 'media', 'advtable', 'hr', 'emoticons', 'link', 'unlink']
        });
    </script>
    <link href="../css/body.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        body { text-align:center; } 
        .addNews
        {
            text-align:left; 
            width:800px;
            margin-left:50px;
            margin-top:30px;
        }
        .table
        {
            width: 800px;
        }
        .table_left
        {
            width: 80px;
            vertical-align: top;
            text-align: right;
        }
        .table_btn
        {
            text-align: center;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="addNews">
        <center> <h3>新闻发布</h3> </center>
        <table class="table">
            <tr>
                <td class="table_left">
                    新闻标题：
                </td>
                <td>
                    <asp:TextBox ID="tb_title" runat="server" Width="200px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="table_left">
                    内容：
                </td>
                <td>
                    <asp:TextBox ID="tb_body" runat="server" TextMode="MultiLine" Height="400px" 
                        Width="600px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td colspan="2" class="table_btn">
                    <asp:Button ID="btn_ok" runat="server" Text="发布" onclick="btn_ok_Click" />
                    &nbsp;<asp:Button ID="btn_res" runat="server" Text="清空" 
                        onclick="btn_res_Click" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
